﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Gnosis.Babel;

namespace Gnosis.SQLite.Tables
{
    public class TableUniqueKey
        : Constraint
    {
        public TableUniqueKey(ConstraintName name, IList<IExpression> indexedColumns)
            : base(name, "UNIQUE", indexedColumns)
        {
        }

        public TableUniqueKey(ConstraintName name, IList<IExpression> indexedColumns, IExpression onConflict)
            : this(name, indexedColumns)
        {
            AddChild(onConflict);
        }
    }
}
